const koa = require('koa');
const wConfig = require('./wechat/wConfig');

const app = new koa();

const config = {
    wechat: {
        appID: 'wx1facd756a1e0c54e', //填写你自己的appID
        appSecret: '23d90b9cd986c0e75ec256d6f2a81150',  //填写你自己的appSecret
        token: 'movie'  //填写你自己的token
    }
};

app.use(wConfig(config.wechat));
app.listen(8080, () => {
    console.log('server is starting at port 8080');
});